

class DeviceInfo(object):
    # 设备基本信息
    name = ""
    serial = ""
    remark = ""
    
    # 网络接口信息
    interface_name = ""
    ip = ""
    submask = ""
    gateway = ""

    # 时间
    ntp_url = ""

    def __str__(self):
        return (f"设备: {self.name}\n"
                f"序列号: {self.serial}\n"
                f"备注: {self.remark}\n"
                f"网络接口: {self.interface_name}\n"
                f"IP地址: {self.ip}\n"
                f"子网掩码: {self.submask}\n"
                f"网关: {self.gateway}\n"
                f"ntp服务器: {self.ntp_url}")
    
